package com.example.administrator.httpdemo.greendao.gen;

import java.util.Map;

import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.AbstractDaoSession;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.identityscope.IdentityScopeType;
import org.greenrobot.greendao.internal.DaoConfig;

import com.example.administrator.httpdemo.Data.entity.SongRecorder;

import com.example.administrator.httpdemo.greendao.gen.SongRecorderDao;

// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.

/**
 * {@inheritDoc}
 * 
 * @see org.greenrobot.greendao.AbstractDaoSession
 */
public class DaoSession extends AbstractDaoSession {

    private final DaoConfig songRecorderDaoConfig;

    private final SongRecorderDao songRecorderDao;

    public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
            daoConfigMap) {
        super(db);

        songRecorderDaoConfig = daoConfigMap.get(SongRecorderDao.class).clone();
        songRecorderDaoConfig.initIdentityScope(type);

        songRecorderDao = new SongRecorderDao(songRecorderDaoConfig, this);

        registerDao(SongRecorder.class, songRecorderDao);
    }
    
    public void clear() {
        songRecorderDaoConfig.clearIdentityScope();
    }

    public SongRecorderDao getSongRecorderDao() {
        return songRecorderDao;
    }

}
